import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

const routes = [
  {
    path: '/danci',
    name: 'Danci',
    component: () => import('../views/danci.vue'),
  },
  {
    path: '/kecheng',
    name: 'Kecheng',
    component: () => import('../views/kecheng.vue')
  },
  {
    path: '/faxian',
    name: 'Faxian',
    component: () => import('../views/faxian.vue')
  },
  {
    path: '/shangcheng',
    name: 'ShangCheng',
    component: () => import('../views/shangcheng.vue')
  },
  {
    path: '/wo',
    name: 'Wo',
    component: () => import('../views/wo.vue')
  },
  {
    path: '/abc0',
    name: 'xiaojiangtang',
    component: () => import('../views/xiaojiangtang.vue')
  },
  {
    path: '/qwe',
    name: 'qwe',
    component: () => import('../views/yichuandanci.vue')
  },
  {
    path: '/kkk+i',
    name: 'kkk',
    component: () => import('../views/xiangqingye.vue')
  },
  {
    path: '/uuu',
    name: 'uuu',
    component: () => import('../views/baoyou.vue')
  },
  {
    path: '/dingdan',
    name: 'dingdan',
    component: () => import('../views/dingdan.vue')
  },
  {
    path: '/lll',
    name: 'lll',
    component: () => import('../views/dizhi.vue')
  },
  {
    path: '/zhifubao',
    name: 'zhifubao',
    component: () => import('../views/zhifubao.vue')
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/login.vue')
  },
  {
    path: '/mmm',
    name: 'mmm',
    component: () => import('../views/danci.vue')
  },
  {
    path: '/zhuce',
    name: 'zhuce',
    component: () => import('../views/zhuce.vue')
  },
  {
    path: '/start',
    name: 'start',
    component: () => import('../views/start.vue')
  },
  {
    path: '/hhh',
    name: 'hhh',
    component: () => import('../views/jingxuan.vue')
  },
  {
    path: '/ggg',
    name: 'ggg',
    component: () => import('../views/fu.vue')
  },
  // 重定向
  {
    path: "/",
    // 重新定位方向
    redirect: "/danci"
  },// 全局前置守卫
  {
    path: '*',
    name:'no',
    component: () => import('../views/err404.vue')
  }
]

const router = new VueRouter({
  // mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
